//<<<<<<< .mine
////
////#ifndef PROJECTZ_NUSER_NCOMMAND_CS_REQ_USER_INFO_INVEN_H_
////#define PROJECTZ_NUSER_NCOMMAND_CS_REQ_USER_INFO_INVEN_H_
////
////#include "../../engine.h"
////
////#include "../../User.h"
////#include "../../Data.h"
////#include "../../game/game.h"
////
////#include "../../Enum.h"
////#include "../../NLogic/Bag.h"
////#include "../../NLogic/Equip.h"
////#include "../../NLogic/Item.h"
////
////
////namespace ProjectZ { namespace NCommand { namespace NWorld {
////
////class CS_REQ_USER_INFO_INVEN
////{
////public:
////	static void OnExecute(User * pUser, ::Network::Packet * pPacket)
////	{
////		STRESSLOG("[CHANNEL] CS_REQ_USER_INFO_INVEN::ONEXECUTE");
////
////		PREPARE_PACKET;
////
////		::Logger::GETLOG()->ToFile(::Logger::DEBUG, "CS_REQ_USER_INFO_INVEN GID : %d", pUser->GetGID());
////
////		//SendCharacterInvenInfo(pUser, pUser);
////
////		// 전체 아이템 정보를 Cache 처리한다....
////		for(int i = static_cast<int>(BAG_TYPE_NORMAL); i < static_cast<int>(BAG_TYPE_MAX); ++i)
////		{
////			NLogic::Bag * pBag = pUser->GetBag(static_cast<INVEN_BAG_TYPE>(i));
////			if (NULL == pBag)
////				return;
////
////			// Item Load From Database
////			if (false == pBag->IsLoad())
////			{
////				if (false == pBag->ItemLoadFromDatabase())
////					return;
////			}
////		}
////
////		//SendCharacterInvenInfo(pUser, pUser);
////
////		pUser->GetEquip()->EquipAddFromCharacterInfo();
////
////		::Network::Packet * pAck = ::Network::GETPACKETPOOL()->SEND_NEW();
////		pAck->MsgCat("%d", pUser->GetGID());
////		pAck->MsgCat("%d", pUser->GetCharacterInfo().gold);
////
////		pAck->MsgCat("%c", BAG_TYPE_MAX);
////		for(int i = 0 ; i < BAG_TYPE_MAX ; i++)
////			pAck->MsgCat("%c", 16);
////
////		NLogic::Equip * pEquip = pUser->GetEquip();
////
////		for (int i = 0; i <= static_cast<int>(EnumItemEquipPosition::ITEM_EQUIP_POS_TITLE); ++i)
////		{
////			if (false == pEquip->IsExistItem(static_cast<EnumItemEquipPosition>(i)))
////				continue;
////
////			NLogic::Item * pItem = pEquip->GetItem(static_cast<EnumItemEquipPosition>(i));
////
////			pAck->MsgCat("%c", i);
////			pAck->MsgCat("%c", pItem->GetData().bag_type);
////			pAck->MsgCat("%2d", pItem->GetData().bag_slot_number);
////			//pItem->WriteToPacket(pAck);
////
////		}
////
////		pAck->MakePacket(CMD_SC_REQ_USER_INFO_INVEN);
////		pUser->Send(pAck);
////	}
////};
////
////} /*NWorld*/ } /*NCommand*/ } /*ProjectZ*/
////
////
////#endif /* PROJECTZ_NUSER_NCOMMAND_CS_REQ_USER_INFO_INVEN_H_ */
//=======
//
//#ifndef PROJECTZ_NUSER_NCOMMAND_CS_REQ_USER_INFO_INVEN_H_
//#define PROJECTZ_NUSER_NCOMMAND_CS_REQ_USER_INFO_INVEN_H_
//
//#include "../../engine.h"
//
//#include "../../User.h"
//#include "../../Data.h"
//#include "../../game/game.h"
//
//#include "../../Enum.h"
//#include "../../NLogic/Bag.h"
//#include "../../NLogic/Equip.h"
//#include "../../NLogic/Item.h"
//
//
//namespace ProjectZ { namespace NCommand { namespace NWorld {
//
//class CS_REQ_USER_INFO_INVEN
//{
//public:
//	static void OnExecute(User * pUser, ::Network::Packet * pPacket)
//	{
//		STRESSLOG("[CHANNEL] CS_REQ_USER_INFO_INVEN::ONEXECUTE");
//
//		PREPARE_PACKET;
//
//		::Logger::GETLOG()->ToFile(::Logger::DEBUG, "CS_REQ_USER_INFO_INVEN GID : %d", pUser->GetGID());
//
//		//SendCharacterInvenInfo(pUser, pUser);
//
//		// 전체 아이템 정보를 Cache 처리한다....
//		for(int i = static_cast<int>(BAG_TYPE_NORMAL); i < static_cast<int>(BAG_TYPE_MAX); ++i)
//		{
//			NLogic::Bag * pBag = pUser->GetBag(static_cast<INVEN_BAG_TYPE>(i));
//			if (NULL == pBag)
//				return;
//
//			// Item Load From Database
//			if (false == pBag->IsLoad())
//			{
//				if (false == pBag->ItemLoadFromDatabase())
//					return;
//			}
//		}
//
//		pUser->GetEquip()->EquipAddFromCharacterInfo();
//
//		::Network::Packet * pAck = ::Network::GETPACKETPOOL()->SEND_NEW();
//		pAck->MsgCat("%d", pUser->GetGID());
//		pAck->MsgCat("%d", pUser->GetCharacterInfo().gold);
//
//		pAck->MsgCat("%c", BAG_TYPE_MAX);
//		for(int i = 0 ; i < BAG_TYPE_MAX ; i++)
//			pAck->MsgCat("%c", 16);
//
//		NLogic::Equip * pEquip = pUser->GetEquip();
//
//		pAck->MsgCat("%c", pEquip->HasItemCount());
//
//		for (int i = 0; i <= static_cast<int>(EnumItemEquipPosition::ITEM_EQUIP_POS_TITLE); ++i)
//		{
//			NLogic::Item * pItem = pEquip->GetItem(static_cast<EnumItemEquipPosition>(i));
//			if (NULL == pItem)
//				continue;
//
//			pAck->MsgCat("%c", i);
//			pAck->MsgCat("%c", pItem->GetData().bag_type);
//			pAck->MsgCat("%2d", pItem->GetData().bag_slot_number);
//			pItem->WriteToPacket(pAck);
//		}
//
//		pAck->MakePacket(CMD_SC_REQ_USER_INFO_INVEN);
//		pUser->Send(pAck);
//	}
//};
//
//} /*NWorld*/ } /*NCommand*/ } /*ProjectZ*/
//
//
//#endif /* PROJECTZ_NUSER_NCOMMAND_CS_REQ_USER_INFO_INVEN_H_ */
//>>>>>>> .r711
